/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpe.cin.dsoa.visualvm.domain;

/**
 *
 * @author rafael.lima
 */
public class MonitoringService {

	private String name;
	private String clas;


	private String topic;
	private QoSCharacteristic characteristic;

	public MonitoringService(String name, String clas, String topic, QoSCharacteristic ch) {
		this.name = name;
		this.clas = clas;
		this.topic = topic;
		this.characteristic = ch;
	}

	public String getClas() {
		return clas;
	}

	public void setClas(String clas) {
		this.clas = clas;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	@Override
	public String toString(){
		return this.name;
	}

	@Override
	public boolean equals(Object o){
		boolean ret = false;

		ret = o != null && o instanceof MonitoringService && ((MonitoringService)o).getName().equals(this.getName());

		return ret;
	}

	
	public QoSCharacteristic getCharacteristic() {
		return characteristic;
	}

	public void setCharacteristic(QoSCharacteristic characteristic) {
		this.characteristic = characteristic;
	}


}
